<%--
  User: wyz
  Date: 2024/7/22
  Time: 15:59
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>商品管理</title>
    <style>
        #toolbar {
            margin-bottom: 10px;
            display: flex;
            align-items: center;
        }
        .toolbar-item{
            margin-right: 10px;
        }
    </style>
</head>
<body>

<%@include file="../common/header.jsp"%>
<div class="container clearfix">
    <%@include file="../common/menu.jsp"%>
    <!--/sidebar-->
    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list">
                <i class="icon-font"></i>
                <a href="http://localhost:8080/back/index.jsp">首页</a>
                <span class="crumb-step">&gt;</span>
                <span class="crumb-name"><a class="crumb-name" href="../goods/getAllGoods">商品管理</a></span>
            </div>
        </div>
        <div class="search-wrap">






            <div id="toolbar">
                <div class="toolbar-item">
                    <a href="../goods/addGoods"><input class="btn btn-primary btn2" name="sub" value="添加商品" type="button"/></a>
                </div>
                <div class="toolbar-item">
                    <form action="../goods/search.do" method="get">
                        <table class="search-tab">
                            <tr>
                                <td>
                                    <input class="common-text" placeholder="请输入信息查询"  name="condition" id="" type="text" />
                                </td>
                                <td>
                                    <input class="btn btn-primary btn2"  type="submit"/>
                                </td>
                                <th width="70"><p></p ></th>
                                <td>
                                    <div class="common-text">
                                        <label for="category"  placeholder="请选择依据排序的字段"></label>
                                        <select name="sort" id="category">
                                            <option value=""  disabled selected>请选择依据排序的字段</option>
                                            <option value="goods_id">商品编号</option>
                                            <%--                                                <option value="supplierCompany">供应商公司名</option>--%>
                                            <%--                                                <option value="supplierName">供应商负责人</option>--%>

                                        </select>
                                    </div>
                                </td>
                                <td>
                                    <p>        </p>
                                    <p>        </p>
                                    <p> </p>
                                    <p> </p>
                                    <p> </p>
                                    <p> </p>
                                    <p> </p>
                                    <p>   </p>
                                </td>
                                <td>
                                    <a href="../goodsType/addGoodsType"><input class="btn btn-primary btn2" name="sub" value="添加商品类型" type="button"/></a>
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>

        </div>
        <div class="result-wrap">
            <div class="result-content">
                <table class="result-tab" width="100%">
                    <thead>
                    <tr>
                        <th>商品编号</th>
                        <th>商品名称</th>
                        <th>商品类型</th>
                        <th>商品规格</th>
                        <th>品牌</th>
                        <th>详细资料</th>
                        <th colspan="2">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <c:forEach items="${goods}" var="goods">
                    <tr>
                        <td>${goods.goods_barcode}</td>
                        <td>${goods.goods_name}</td>
                        <td>${goods.goods_type}</td>
                        <td>${goods.goods_sprecification}</td>
                        <td>${goods.brand}</td>
                        <td class="details"><a href="../goods/getGoodsById?id=${goods.goods_id}">查看</a></td>
                        <td class="action" ><a href="../goods/edit.do?id=${goods.goods_id}">修改</a></td>
                        <td class="details"><a href="../goods/deleteGoods?id=${goods.goods_id}">删除</a></td>
                    </tr>
                    </c:forEach>
                    </tbody>

                </table>
            </div>
        </div>

    </div>

</div>
<%@include file="../common/footer.jsp"%>

</body>

</html>
